﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Employees
{
    public static class RoleBLL
    {
        public static int GetRoleCount(IList<Condition> conditionArray)
        {
            return RoleDAL.GetRoleCount(conditionArray);
        }

        public static IList<RoleEntity> GetRoleList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return RoleDAL.GetRoleList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static IList<RoleEntity> GetRoleList()
        {
            return RoleDAL.GetRoleList();
        }

        public static RoleEntity GetRole(int roleID)
        {
            return RoleDAL.GetRole(roleID);
        }

        public static int InsertRole(RoleEntity role)
        {
            return RoleDAL.InsertRole(role);
        }

        public static int UpdateRole(RoleEntity role)
        {
            return RoleDAL.UpdateRole(role);
        }

        public static int DeleteRole(int roleID)
        {
            return RoleDAL.DeleteRole(roleID);
        }

        public static IList<RightsEntity> GetRightsList()
        {
            return RoleDAL.GetRightsList();
        }
    }
}
